package com.guigu.zj.controller;

import com.guigu.pojo.Mealgroup;
import com.guigu.zj.service.MealGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MealgroupController {
    @Autowired
    MealGroupService mealGroupService;

    @RequestMapping("/Z_delG")
    public int delG(@RequestBody Mealgroup mealgroup){

      return  mealGroupService.deleteByPrimaryKey(mealgroup);
    }

}
